package com.xy.weatherDate;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/19 10:13
 * @description
 */
public class Client {
    public static void main(String[] args) {
        // 注册观察者
        WeatherData weatherData = new WeatherData();
        Observer iphoneWeatherApp = new IphoneWeatherApp(weatherData);
        Observer androidWeatherApp = new AndroidWeatherApp(weatherData);
        // 气象站更新数据
        System.out.println("============气象站数据更新===========");
        weatherData.setMeasurements(35,85,99);
    }
}
